{% extends 'home.html' %}
{% csrf_token %}
{% block css %}
    <link rel="stylesheet" href="/static/css/{{ blog_obj.site_theme }}/">
{% endblock %}
{% block content_outer %}
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2">
                {# 加载 inclusion_tag #}
                {% load CommonInclusionTags %}

                {% article_left request %}
            </div>
            <div class="col-md-10">
            {% block site_main %}
              <div class="pull-right">随笔 - {{ article_data_all.count }}</div>
                <hr>
                {#  {% for article_obj in article_data_all %} #}
                {% for article_obj in page_queryset %}
                    <div class="media">
                        <div class="media-heading"><h4>
                            <a href="{% url 'article_detail' username article_obj.pk %}">{{ article_obj.title }}</a></h4></div>
                        <div class="media-body">[摘要] &nbsp; {{ article_obj.desc }}</div>
                        <br>
                        <div class="media-bottom pull-right">
                            posted
                            @ {{ article_obj.create_time|date:"Y-m-d H:i:s" }}
                            <a href="">{{ article_obj.blog.userinfo.username }}</a>
                            点赞({{ article_obj.up_num }}) 评论({{ article_obj.comment_num }})
                            点踩({{ article_obj.down_num }})
                            <a href="">编辑</a>
                        </div>
                    </div>
                    <hr>
                {% endfor %}
                <div class="text-center">
                    {{ page_obj.page_html|safe }}
                </div>

            {% endblock %}
            </div>
        </div>
    </div>
{% endblock %}
